package cn.iocoder.yudao.module.api.vlog.report.enums;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 短视频举报类型枚举
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2024/3/16 8:56
 */
@Getter
@AllArgsConstructor
public enum VlogReportTypeEnum implements ArrayValuable<Integer> {

    YIN_QI_BU_SHI(1, "引起不适"),
    WU_RU_MAN_MA(2, "侮辱谩骂"),
    HUANG_DU_DU(3, "黄赌毒"),
    ;

    public static final Integer[] ARRAYS = Arrays.stream(values()).map(VlogReportTypeEnum::getKey).toArray(Integer[]::new);

    @EnumValue
    private final int key;
    private final String value;

    @Override
    public Integer[] array() {
        return ARRAYS;
    }

}
